.PHONY: compile-local build

SHELL := /bin/bash
SERVICE_DIR := server
SERVICE_NAME := api_gateway
BUILD_DIR := /build
COMPILE_TARGET := compile-local
OUT_TARGET := /payme3000/go/$(SERVICE_NAME)

compile-local:
	cd $(BUILD_DIR)/payme3000/$(SERVICE_DIR)/$(SERVICE_NAME) && make build

build: $(COMPILE_TARGET)
	cp -f $(OUT_TARGET) ./$(SERVICE_NAME)
